package l.l.test.获得class对象;

/**
 * Created by llw on 2018/5/5/0005.
 */
public class UseClassForName {

    static {
        System.out.println("in UseClassForName static");

    }

    public static void main(String[] args) throws ClassNotFoundException, IllegalAccessException, InstantiationException {
        Class<?> clazz = Class.forName("l.l.test.获得class对象.Use_ClassName_class");
        System.out.println("========");
        Object o = clazz.newInstance();
        System.out.println("================");

        Class<?> clazz1 = Class.forName("l.l.test.获得class对象.Use_ClassName_class");
        Object o1 = clazz1.newInstance();
        System.out.println("================");
    }
}
